<?php
include  'Util.php';

if ($_POST["element_2"] != $_POST["element_3"]) {
   header("location: form/account.php?pass=1");
   exit();
}

$link = Util::getLink();

$query = sprintf(Util::$update_jornakUsers,
    mysql_real_escape_string($_POST["element_1"]),
    mysql_real_escape_string(Util::hash($_POST["element_1"], $_POST["element_2"]))
);

mysql_query($query);

Util::closeLink($link);

header("location: ".Constants::$link_done_fromResolve);
?>
